/*
 * @Author: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @Date: 2022-10-21 11:06:19
 * @LastEditors: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @LastEditTime: 2022-10-26 15:58:21
 * @FilePath: \宏烨找房\用户端\app\demo\src\Route\index.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { lazy } from 'react'
const Login = lazy(() => import('../page/Login/index.jsx'));
const Sign = lazy(() => import('../page/Sign/index.jsx'));

const Sure = lazy(() => import('../page/Sure/index.jsx'));

const Layout = lazy(() => import('../page/Layout/index.jsx'));
const Home = lazy(() => import('../page/Home/index.jsx'));
const House = lazy(() => import('../page/House/index.jsx'));
const Publish = lazy(() => import('../page/Publish/index.jsx'));
const Message = lazy(() => import('../page/Message/index.jsx'));
const My = lazy(() => import('../page/My/index.jsx'));
// 城市站点
const City = lazy(() => import('../page/City/index.jsx'));
const Map = lazy(() => import('../page/Map/index.jsx'));

// 在线咨询
const Service = lazy(() => import('../page/Service/index.jsx'));

const BuyHouse = lazy(() => import('../page/buyHouse/index.jsx'));
const Rent = lazy(() => import('../page/Rent/index.jsx'));
const RentHouse = lazy(() => import('../page/rentHouse/index.jsx'));
const Gou = lazy(() => import('../page/Gou/index.jsx'));
const MapHouse = lazy(() => import('../page/mapHouse/index.jsx'));
const Information = lazy(() => import('../page/Information/index.jsx'));
const CityCircle = lazy(() => import('../page/cityCircle/index.jsx'));
const Agent = lazy(() => import('../page/Agent/index.jsx'));
const BulkHouse = lazy(() => import('../page/bulkHouse/index.jsx'));
const LiveHouse = lazy(() => import('../page/liveHouse/index.jsx'));
const HousingDetail = lazy(() => import('../page/housingDetail/index.jsx'));

export const RouterList = [
    {
        path: '/',
        redirect: '/',
        element: <Sure />
    },
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/sign',
        element: <Sign />
    },
    {
        path: '/housingDetail/:id',
        element: <HousingDetail />
    },
    {
        path:'/city',
        element: <City />
    },
    {
        path: '/layout',
        redirect:'/layout/home',
        element: <Layout />,
        children: [
            {
                path: '/layout/home',
                element: <Home />
            },
            {
                path: '/layout/house',
                element: <House />
            },
            {
                path: '/layout/my',
                element: <My />
            },
        ]
    },
    {
        path: '/buyHouse',
        element: <BuyHouse />
    },
    {
        path: '/rentHouse',
        element: <RentHouse />
    },
    {
        path: '/rent',
        element: <Rent />
    },
    {
        path: '/gou',
        element: <Gou />
    },
    {
        path:'/mapHouse',
        element: <MapHouse />
    },
    {
        path: '/information',
        element: <Information />
    },
    {
        path: '/CityCircle',
        element: <CityCircle />
    },
    {
        path: '/agent',
        element: <Agent />
    },
    {
        path: '/bulkHouse',
        element: <BulkHouse />
    },
    {
        path: '/liveHouse',
        element: <LiveHouse />
    },
    {
        path: '/map',
        element: <Map />
    },
    {
        path: '/service',
        element: <Service />
    },
]